import request from '@/utils/request'
import Vue from 'vue'

// 获取客服消息配置列表接口
export const getList = data => {
    return request({
        url: Vue.prototype.$api.customer.messageList,
        method: 'post',
        data,
    })
}
export const editCustomerMessage = data => {
    return request({
        url: Vue.prototype.$api.customer.edit,
        method: 'post',
        data,
    })
}
export const messageSync = data => {
    return request({
        url: Vue.prototype.$api.customer.messageSync,
        method: 'post',
        data,
    })
}
export const messageLog = data => {
    return request({
        url: Vue.prototype.$api.customer.messageLog,
        method: 'post',
        data,
    })
}
export const getShopList = data => {
    return request({
        url: Vue.prototype.$api.customer.shopList,
        method: 'post',
        data,
    })
}

export const addTagList = data => {
    return request({
        url: Vue.prototype.$api.customer.addTagList,
        method: 'post',
        data,
    })
}
export const addTag = data => {
    return request({
        url: Vue.prototype.$api.customer.addTag,
        method: 'post',
        data,
    })
}
export const delTagList = data => {
    return request({
        url: Vue.prototype.$api.customer.delTagList,
        method: 'post',
        data,
    })
}
export const addDelTag = data => {
    return request({
        url: Vue.prototype.$api.customer.addDelTag,
        method: 'post',
        data,
    })
}
export const getTagList = data => {
    return request({
        url: Vue.prototype.$api.customer.getTagList,
        method: 'post',
        data,
    })
}